package goiot.dto;

import java.util.Date;
import java.util.Map;

public class Device {
	private String id;
	private String name;
	private String productId;
	private String parentId;
	private String state;
	private String deviceType;
	private Map<String, String> metaconfig;
	private Map<String, String> tag;
	private String desc;
	private int createId;
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public Map<String, String> getMetaconfig() {
		return metaconfig;
	}

	public void setMetaconfig(Map<String, String> metaconfig) {
		this.metaconfig = metaconfig;
	}

	public Map<String, String> getTag() {
		return tag;
	}

	public void setTag(Map<String, String> tag) {
		this.tag = tag;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCreateId() {
		return createId;
	}

	public void setCreateId(int createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return super.toString() + " [id=" + id + ", name=" + name + ", productId=" + productId + ", parentId=" + parentId
				+ ", state=" + state + ", deviceType=" + deviceType + ", metaconfig=" + metaconfig + ", tag=" + tag
				+ ", desc=" + desc + ", createId=" + createId + ", createTime=" + createTime + "]";
	}
	
}
